#include<iostream>
#include<algorithm>
using namespace std;
int cnt['Z'];
int main()
{
	char s;
	while(cin>>s && s!='E')
	{
		cnt[s]++;
		if((cnt['L']>=15 && cnt['L']-cnt['W']>=2) || (cnt['W']>=15 && cnt['W']-cnt['L']>=2))
		{
			cout<<cnt['W']<<":"<<cnt['L']<<endl;
			cnt['L']=cnt['W']=0;
		}
	}
	if(!(cnt['W']==0 && cnt['L']==0))
		cout<<cnt['W']<<":"<<cnt['L']<<endl;
    return 0;
}
